import time
import random
from datetime import datetime

m = time.time()

print(datetime.now())
now = datetime.strftime(datetime.now(),'%Y-%m-%d %H:%M:%S')
print(now)
print(time.strftime('%Y-%m-%d %X'))

print(time.localtime(time.time()))

print(time.time())
time.sleep(0.3)
print(time.time())
print(time.strftime('%H:%M:%S', time.localtime(time.time())))



# import matplotlib.pyplot as plt
# import matplotlib.dates as mdate
#
# x_date = ['2022-01-01','2022-02-01','2022-03-01','2022-04-01','2022-05-01','2022-06-01','2022-07-01','2022-08-01','2022-09-01','2022-10-01']
# y_value = [1,2,3,3,4,4,4,5,5,5]
# count=5   #横坐标刻度数量
#
# ax = plt.gca() #表明设置图片的各个轴，plt.gcf()表示图片本身
# ax.xaxis.set_major_formatter(mdate.DateFormatter('%Y-%m-%d')) # 横坐标标签显示的日期格式
#
# # 设置横轴日期间隔
# array = []
# x_length = len(x_date)
# x_gap = x_length/count
# [array.append(j) for j in range(0,x_length,int(x_gap))] # array_samp=[0,2,4,6,8,10]
# ax.set_xticks(array)    # 调用set_xticks函数画横轴刻度
# labels = [x_date[i] for i in array]     # 取出日期字符串
# ax.set_xticklabels(labels,rotation=40)  #调用set_xticklabels函数，为横轴刻度附上标签，旋转40度
#
# # 正常输入横纵坐标轴数据
# plt.plot(x_date,y_value, "-o", color='red', label='{} delay_time')
#
#
# plt.legend()
# plt.gcf().autofmt_xdate()  # 自动旋转日期标记
# plt.show()


print(time.time())
print(int(time.time()))
print((int(time.time()) + 1) * 1000)

l1 = [1,2,3,4,5,5,5,6,7,7,7,7,8,9,10,10,10]
for i in range(0,10,4):
    print(l1[i])

print(l1.index(7))

vehicleId_list = [[] for id in range(1000, 7001)]
print(vehicleId_list)

